package com.gupt.youhd.entity;/*
@author name
@data 2023/4/8-23:30
*/


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Orders implements Serializable {
    private int orderId;
    private int userId;
    private int productId;
    private int receiveWay;
    private int quantity;
    private Date orderTime;
    private BigDecimal amount;
    private Product product;

    public void setOrderTime() {
        this.orderTime = new Date();
    }



}
